# -*- coding: utf-8 -*-
"""
@Time    : 2024/6/24 10:40 
@Author  : ZhangShenao 
@File    : app_schema.py 
@Desc    : 应用模块请求与响应结构体
"""

from flask_wtf import FlaskForm
from wtforms.fields.simple import StringField
from wtforms.validators import DataRequired, Length


class ChatReq(FlaskForm):
    """
    聊天请求
    """
    query = StringField('query', validators=[
        DataRequired(message='提问词为必填项'),
        Length(min=1, max=2000, message='提问词的长度在1到2000之间')
    ])
